//
//  VideoDetailViewController.m
//  LeagueOfLegend
//
//  Created by appying_wxj on 14/12/19.
//  Copyright (c) 2014年 appying_wxj. All rights reserved.
//

#import "VideoDetailViewController.h"

@interface VideoDetailViewController ()

@end

@implementation VideoDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.titleLab.text = @"视频详情";
    
    self.leftButton.frame = CGRectMake(0, 22, 40, 40);
    [self.leftButton setBackgroundImage:[UIImage imageNamed:@"iconfont-fanhui"] forState:UIControlStateNormal];
    [self.leftButton addTarget:self action:@selector(leftButtonClick:) forControlEvents:UIControlEventTouchUpInside];
    
    NSString *str = self.detailStr;//获取更新的内容
//    NSLog(@"-----------获取到的是-----------%@",str);
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height-49-30)];
    NSURL *url = [[NSURL alloc] initWithString:str];
    [webView loadRequest:[NSURLRequest requestWithURL:url]];
    webView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:webView];
    
    

}
#pragma mark-----UIButtonClick-------
-(void)leftButtonClick:(UIButton *)sender{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
